﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace finePrime3
{
    class Program
    {
        static void Main(string[] args)
        {
            int NUM = 100;
            bool[] nums = new bool[NUM+1];
            for(int i = 0; i < NUM; i++)
            {
                nums[i] = true;
            }
            for(int i = 2;i * i< NUM; i++)
            {
                
                if(nums[i])
                {
                    for(int j = i*i; j < NUM; j += i)
                    {
                        nums[j] = false;
                    }
                }
            }
            for(int i = 2; i <= NUM; i++)
            {
                if (nums[i])
                {
                    Console.Write(i+",");
                }
            }
            return;
        }
    }
}
